package com.own.business.system.user.entity.query;

import com.own.component.common.base.entity.BaseQuery;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * SystemUserSecurityQuery
 *
 * @author chenxueli
 * @date 2021/06/25 16:51:09
 */
@Schema(title = "系统用户账号安全" + ConstantBeanSuffix.QUERY)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class SystemUserSecurityQuery extends BaseQuery {

    @Schema(title = "用户id")
    private Long userId;

    @Schema(title = "是否允许使用姓名登录 1=允许 0=不允许")
    private Integer allowLoginName;

    @Schema(title = "是否允许使用手机号登录 1=允许 0=不允许")
    private Integer allowLoginPhone;

    @Schema(title = "是否允许使用短信验证码登录 1=允许 0=不允许")
    private Integer allowLoginSms;

    @Schema(title = "是否允许使用密码登录 1=允许 0=不允许")
    private Integer allowLoginPassword;

    @Schema(title = "是否允许使用邮箱登录 1=允许 0=不允许")
    private Integer allowLoginEmail;

    @Schema(title = "是否开启登录的ip验证 1需要 0不需要")
    private Integer allowLoginIp;

    @Schema(title = "允许登录的ip，登录ip设置127.0.0.1为全网都能登录")
    private String loginIps;

}
